home *** CD-ROM | disk | FTP | other *** search
- #pragma once
-
- #include "CDEVClass.h"
-
- struct myCDevObj : cdevObj {
- myCDevObj(short numItems,DialogPtr cp);
- virtual ~myCDevObj(void);
-
- long hit(short itemHit); // handles a mouse hit in the control panel
- long idle(void); // handling of nulDev message
- long update(void); // update user items
- long activate(void); // activate user items
- long deactivate(void); // deactivate user items
- long undo(void); // undo from edit menu or cmd-z
- private:
- Boolean activated,
- showSeconds;
- unsigned long lastTime;
- Str255 timeString;
-
- Boolean getTime(void);
- void setCheckBox(void);
- };
-